/*
package com.css.common.core.utils;

import com.invoice.tcc.cons.TaskNotReturn;
import com.invoice.tcc.service.NotifyService;
import com.invoice.tcc.service.QywebInvoiceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Recover;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

*/
/**
 * @description: 重试工具类
 * @Title: RetryUtil
 * @Author xlw
 * @Package com.invoice.tcc.util
 * @Date 2024/10/22 16:34
 *//*

@Slf4j
@Component
public class RetryUtil {

    @Resource
    private NotifyService notifyService;

    @Resource
    private QywebInvoiceService invoiceService;

    @Retryable(value = RuntimeException.class, maxAttempts = 10, backoff = @Backoff(delay = 2000, multiplier = 2))
    public void retry10(TaskNotReturn task) {
        task.execute();
    }

    @Retryable(value = RuntimeException.class, maxAttempts = 50, backoff = @Backoff(delay = 1000, multiplier = 1.5))
    public void retry50(TaskNotReturn task) {
        task.execute();
    }

    */
/**
     * 重试最大次数补偿
     *
     * @param e e
     *//*

    @Recover
    public void recover(RuntimeException e) {
    }
}
*/
